/* 清除默认边距 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* 背景图片容器 */
.background-container {
    /* 设定背景图片 */
    background-image: url('/ICHDB/Kinds/CSS/wave-header.jpg');
    /* 背景图片居中，不重复
    /* background-position: center;
    background-repeat: no-repeat; */
    /* 设定容器高度，确保背景图片完整显示 */
    /* height: 200px; /* 假设背景图片的高度是500px */
    /* 确保背景图片覆盖整个容器 */
    /* background-size: 40% auto; */
    background-repeat: no-repeat; /* 不重复图片 */
    background-size: cover; /* 缩放图片以完全覆盖元素 */
    background-position: center; /* 图片居中显示 */
    height: 60px; /* 设置导航栏的高度 */
    width: 100%; /* 导航栏宽度为100% */
    display: flex; /* 使用Flexbox布局以水平居中对齐链接 */
    align-items: center; /* 垂直居中对齐链接 */
    justify-content: center; /* 水平居中对齐链接 */ 
}

/* 导航栏样式 */
.navbar {
    /* 清除导航栏的默认边距 */
    /* margin: 0;
    padding: 10px 0; */
    /* 设置背景色（如果需要的话） */
    background-color: #398bc5; /* 半透明黑色背景，以便在图片上更清晰地显示文本 */
    /* 其他样式 */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}
/* 导航链接容器样式 */
.nav-links-container {
    display: flex; /* 使用Flexbox布局 */
    width: 50%; /* 容器宽度占40% */
    justify-content: space-between; /* 链接间均匀分布 */
}
/* 导航链接样式 */
.navbar a {
    text-decoration: none; /* 移除链接下划线 */
    color: white; /* 链接文本颜色（如果背景图较暗） */
    font-size: 16px; /* 链接文本大小 */
    padding: 5px 10px; /* 为链接添加一些内边距以创建点击区域 */
    border-radius: 5px; /* 为链接添加圆角 */
    /* margin: 0 10px; */
    transition: all 0.3s ease; /* 添加过渡效果 */
}

/* 鼠标移动到链接的颜色 */
.navbar a:hover {
    /* background-color: #2e73a2;
    color: black; */
    background-color: rgba(0, 0, 0, 0.3); /* 鼠标悬停时添加背景色（半透明黑色） */
}

.container {
    width: 50%; /* 容器宽度为视口的80% */
    margin: 0 auto; /* 水平居中 */
    padding: 20px; /* 内边距 */
    border: 1px solid #ccc; /* 边框 */
    box-sizing: border-box; /* 使用border-box盒模型 */
    margin-bottom: 30px;
}
.main {   
    -ms-flex: 70%; /* IE10 */
    flex: 70%;
    background-color: white;
    padding: 20px;
}

/* 测试图片 */
.fakeimg {
    background-color: #aaa;
    width: 100%;
    padding: 20px;
}


.mol-container {
width: 60%;
height: 400px;
position: relative;
margin: 0 auto;
}

/* 基本样式 */
table {
    width: 100%;
    border-collapse: collapse; /* 合并相邻边框 */
    margin-top: 20px;
}

th, td {
    padding: 10px; /* 单元格内边距 */
    text-align: left; /* 文本左对齐 */
    border-bottom: 1px solid #ddd; /* 底部边框 */
}

/* 表头样式 */
thead th {
    background-color: #f2f2f2; /* 背景色 */
    font-weight: bold; /* 加粗字体 */
}

/* 隔行变色（可选） */
tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* 偶数行背景色 */
}

/* 其他可选样式 */
/* 例如，鼠标悬停时变色 */
tbody tr:hover {
    background-color: #ddd;
}

/* 移除所有<a>标签的下划线 */
a {
    text-decoration: none;
}  

p {
    /* 设置首行缩进为2em，em是一个相对单位，等于当前元素的字体大小 */
    text-indent: 2em;
}

.content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* 初始状态为隐藏，并且有过渡效果 */
}
.content.visible {
    opacity: 1;
    /* 当添加.visible类时，内容将变为可见 */
}

.nav-links-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px; /* Optional: for better spacing */
}



.links {
    display: flex;
    justify-content: flex-end;
}

.links a {
    margin-right: 5px; /* 设置链接之间的间距 */
}

.links a:last-child {
    margin-right: 0; /* 移除最后一个链接的右边距 */
}

.keyword {
    color: inherit;
    transition: color 0.3s ease;
    cursor: pointer;
}

.highlighted {
    color: rgba(255, 182, 83, 1);
}

/* 模态框样式 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.pagination-container {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 水平两端对齐 */
}

.pagination {
    display: flex;
    align-items: center;
}

.pagination-link a,
.pagination-current {
    margin-right: 5px; /* 链接之间的间距 */
}

/* 如果你还想让表单内的元素并排显示并且没有换行，可以添加以下样式 */
.pagination-form {
    display: inline-flex;
}

.pagination-form input[type="number"],
.pagination-form input[type="submit"] {
    margin-right: 5px; /* 表单元素之间的间距 */
}


        
/* 响应式布局 - 在屏幕设备宽度尺寸小于 700px 时, 让两栏上下堆叠显示 */
@media screen and (max-width: 700px) {
    .row {   
        flex-direction: column;
    }
}

/* 响应式布局 - 在屏幕设备宽度尺寸小于 400px 时, 让导航栏目上下堆叠显示 */
@media screen and (max-width: 400px) {
    .navbar a {
        float: none;
        width: 100%;
    }
}

footer {
    background-color: rgba(203, 150, 130, 0.8);
    text-align: center;
}
footer .environment {
    color: rgba(255, 255, 255, 1);
    padding: 2rem 1.75rem;
}
footer .copyrights {
    background-color: rgba(62, 62, 62, 1);
    color: rgba(200, 200, 200, 1);
    padding: .25rem 1.75rem;
}